package designpattern.factorymethod;

public class Client {
    public static void main(String[] args) {
        ICommodityFactory factoryA = new CommodityAFactory();
        ICommodity factory1 = factoryA.createFactory();
        factory1.createCommodity();

        ICommodityFactory factoryB = new CommodityBFactory();
        ICommodity factory2 = factoryB.createFactory();
        factory2.createCommodity();
    }
}
